package cn.huaqingcheng.tool.core.function;

import java.io.Serializable;

/**
 * 可抛出异常 可序列化的 供应商
 *
 * @see java.util.function.Supplier
 */
public interface Supplier<T, E extends Throwable> extends Serializable {

    /**
     * Gets a result.
     *
     * @return a result
     */
    T get() throws E;

}
